package com.atguigu.gmall.oms.api;

import com.atguigu.gmall.common.bean.ResponseVo;
import com.atguigu.gmall.oms.entity.OrderEntity;
import com.atguigu.gmall.order.vo.OrderSubmitVo;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

public interface GmallOmsApi {
    @GetMapping("oms/order/queryOrderByOrderSn/{orderSn}")
    public ResponseVo<OrderEntity> queryOrderByOrderSn(@PathVariable("orderSn") String orderSn);
    @PostMapping("oms/order/saveOrder/{userId}")
    public ResponseVo<OrderEntity> saveOrder(@PathVariable("userId")Long userId,
                                             @RequestBody OrderSubmitVo orderSubmitVo);
}
